<template>
  <div class="demo-title">slider/demo9</div>
  <div class="demo">
    <Slider v-model="val">
      <template #button>
        <div class="range-demo-button">{{ val }}</div>
      </template>
    </Slider>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue'
  import Slider from '@sscd-mobile/slider'
  const val = ref(32)
</script>

<style lang="less" scoped>
  .demo {
    padding: 40px 18px;
    background: #fff;
  }
  .range-demo-button {
    width: 26px;
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    background-color: #1677ff;
    border-radius: 100px;
  }
</style>
